package a0.reflection;

import java.util.Objects;

/**
 * description:
 * author: xiaoxu
 * createTime: 2018-12-11 14:34
 **/
public class Dog {

    public String name;
    private String color;
    protected int age;

    public Dog() {
    }

    public Dog(String name, String color, Integer age) {
        this.name = name;
        this.color = color;
        this.age = age;
    }


    public void  eat(){
        System.out.println("dog eat ...");
    }

    private void  eat1(){
        System.out.println("dog eat1 ...");
    }

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                ", age=" + age +
                '}';
    }

}
